﻿<Window x:Class="Wpf_ClientLourd.ListeBP"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Liste des BP à préparer" Height="600" Width="800" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center" WindowStartupLocation="CenterScreen" WindowState="Normal" ResizeMode="NoResize">
    <Grid>
        <Label Height="28" HorizontalAlignment="Center" HorizontalContentAlignment="Center" IsEnabled="False" Margin="284,12,288,0" Name="lbl_nom" VerticalAlignment="Top" Width="206" />
        <DataGrid Height="373" HorizontalAlignment="Center" Margin="100,90,121,0" Name="DataGridBP" VerticalAlignment="Top" Width="557" AutoGenerateColumns="False" BorderThickness="2" Block.TextAlignment="Center" HorizontalContentAlignment="Center">
            <DataGrid.Columns>
                <DataGridTextColumn Header="N°" Binding="{Binding Path=numAff}" IsReadOnly="True"  Block.TextAlignment="Center"/>
                <DataGridTextColumn Binding="{Binding Path=id}" Header="Num BP" CanUserResize="True" Width="100"/>
                <DataGridTextColumn Binding="{Binding Path=date, StringFormat=\{0:dd.MM.yy\}}"  Header="Date BP" Width="130" CanUserResize="True" IsReadOnly="True"/>
                <DataGridTextColumn Binding="{Binding Path=statut}" CanUserResize="True" Header="Statut" Width="100" IsReadOnly="True"/>
                <DataGridTextColumn Binding="{Binding Path=id_cmd}" CanUserResize="True" Header="Commande" Width="100" IsReadOnly="True"/>
                <DataGridTextColumn Binding="{Binding Path=type}" CanUserResize="True" Header="Type" Width="100" IsReadOnly="True"/>
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Retour" Height="23" HorizontalAlignment="Left" Margin="630,512,0,0" Name="bt_retour" VerticalAlignment="Top" Width="118" Click="bt_retour_Click"/>
        <Button Content="Imprimer" Height="23" HorizontalAlignment="Left" Margin="29,512,0,0" Name="bt_imprimer" VerticalAlignment="Top" Width="118" Click="bt_imprimer_Click" />
        <Label Height="28" HorizontalAlignment="Left" Margin="258,469,0,0" Name="lbl_nbBP" VerticalAlignment="Top" Width="260" HorizontalContentAlignment="Center" />
    </Grid>
</Window>
